package com.vne.skyemart.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "CategoriesStore",catalog = "skyemart_db")
public class CategoriesStore implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7090860970434630798L;

	@Id
	@GeneratedValue
	@Column(name = "StatusID",nullable = false)
	private int statusID;

	@Column(name = "Title",nullable = false,length = 50)
	private String Title;

	@Column(name = "Description",length = 1000)
	private String description;

	@OneToMany(fetch = FetchType.LAZY,mappedBy = "categoriesStore")
	private Set<Store> store = new HashSet<Store>(0);
	/**
	 * CONSTRUCTOR
	 * 
	 */
	public CategoriesStore() {}
	
	public CategoriesStore(int statusID, String title, String description,
			Set<Store> store) {
		this.statusID = statusID;
		Title = title;
		this.description = description;
		this.store = store;
	}

	/**
	 * GETTER AND SETTER
	 * 
	 */
	
	public String getTitle() {
		return Title;
	}
	public void setTitle(String title) {
		Title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Set<Store> getStore() {
		return store;
	}
	public void setStore(Set<Store> store) {
		this.store = store;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public int getStatusID() {
		return statusID;
	}

	public void setStatusID(int statusID) {
		this.statusID = statusID;
	}
}
